package uncharted

// 赛季排行对象
type RankItem struct {
	// 排行名次
	Rank int

	// 玩家Id
	PlayerId string

	// 玩家名称
	PlayerName string

	// 头像Id
	HeadImageId int

	// 头像框
	PVPInterLv int

	// 服务器组Id
	ServerGroupId int

	// 服务器Id
	ServerId int

	// 服务器名称
	Zone string

	// 公会名称
	GuildName string

	// 时装模型Id
	FashionModelId int

	// 积分
	Score int

	// 所在地图Id
	MapId int8

	// 当前星数
	Star int

	// 玩家vip
	Vip int

	// 玩家等级
	Lv int

	// 头像框Id
	DiyHeadPortraitId string

	// 积分变更时间
	scoreChangeTime int64
}

// 获取积分变更时间
func (this *RankItem) ScoreChangeTime() int64 {
	return this.scoreChangeTime
}

// 新建一个排名信息项
func NewRankItem(rank int, playerId, playerName string, headImageId, pvpInterLv, serverGroupId, serverId int,
	zone, guildName string, fashionModelId, score, vip int, lv int, diyHeadPortraitId string, _scoreChangeTime int64,
	mapId int8, star int) *RankItem {

	return &RankItem{
		Rank:              rank,
		PlayerId:          playerId,
		PlayerName:        playerName,
		HeadImageId:       headImageId,
		PVPInterLv:        pvpInterLv,
		ServerGroupId:     serverGroupId,
		ServerId:          serverId,
		Zone:              zone,
		GuildName:         guildName,
		FashionModelId:    fashionModelId,
		Score:             score,
		Vip:               vip,
		Lv:                lv,
		DiyHeadPortraitId: diyHeadPortraitId,
		scoreChangeTime:   _scoreChangeTime,
		MapId:             mapId,
		Star:              star,
	}
}
